package xyz.jangle.design.command;
/**
 * 具体命令，指挥（委托）接收者执行相应的动作
 * @author Administrator
 *
 */
public class ConcreteCommand implements Command {
	
	private Receiver receiver;
	
	public ConcreteCommand(Receiver receiver) {
		super();
		this.receiver = receiver;
	}

	@Override
	public void execute() {
		
		receiver.action();

	}

}
